<#--用于 dategrid 操作列按钮 -->
<#macro optBtn type="" text="" t="" onclick="" mk=true cls="">
<#if type=="edit">
	<#local text = "编辑" cls = "edit">
<#elseif type=="del">
	<#local text = "删除" cls = "remove">
<#elseif type=="add">
	<#local text = "添加" cls = "add">
<#elseif type=="view">
	<#local text = "查看" cls = "tip">
</#if>
<#if mk>
<a class="optBtn" href="#" data-options="iconCls:\'icon-${cls}\',plain:true" onclick="${onclick}"><#if t!="">${t}<#else>${text}</#if></a><#t/>
<#else>
<a class="easyui-linkbutton" href="#" data-options="iconCls:'icon-${cls}',plain:true" onclick="${onclick}"><#if t!="">${t}<#else>${text}</#if></a><#t/>
</#if>
</#macro>